package ru.study.thinkin.chapter11;

import java.util.*;

public class LinkedListFeatures {
	
	public static void main(String[] args) {
		LinkedList<Pet> pets = new LinkedList<Pet>(Pets.arrayList(5));
		System.out.println(pets);
		System.out.println("getFirst="+pets.getFirst());
		System.out.println("element()="+pets.element());
						
		System.out.println("remove="+pets.remove());
		System.out.println("removeFirst="+pets.removeFirst());
		
		System.out.println("add="+pets.add(new Hamster()));
		pets.addFirst(new Hamster());
		pets.addLast(new Hamster());
		System.out.println(pets);

	}

}
